package com.disney.auth.api.controller;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试system-dubbo接口
 *
 * @author issavior
 */
@RestController
@RequestMapping("/v1/system-remote")
public class SystemRemoteController {

    @Resource
    private SystemRemoteService systemRemoteService;

    @Autowired
    private RedissonClient redissonClient;

    @Operation(summary = "获取-SystemRemote-当前时间", description = "获取-SystemRemote-当前时间")
    @LogAdvice
    @GetMapping("/remote-date")
    public Result<String> getSystemRemoteNowDate() {
        SystemServerApiRes<String> remoteNowDate = systemRemoteService.getSystemRemoteNowDate();
        return Result.ok(remoteNowDate.getData());
    }


}
